package com.atlin.project.service;


import com.atlin.project.model.domain.LoginInfo;
import com.atlin.project.model.dto.loginInfo.LoginInfoQueryRequest;
import com.atlin.project.model.vo.LoginInfoVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
* @author atlin
* @description 针对表【login_info(系统访问记录)】的数据库操作Service
* @createDate 2024-05-25 14:31:21
*/
public interface LoginInfoService extends IService<LoginInfo> {

    QueryWrapper<LoginInfo> getQueryWrapper(LoginInfoQueryRequest loginInfoQueryRequest);

    
    /**
     * 获取封装
     *
     * @param template
     * @param request
     * @return
     */
    LoginInfoVO getLoginInfoVO(LoginInfo template, HttpServletRequest request);

    
    /**
     * 分页获取封装
     *
     * @param questionPage
     * @param request
     * @return
     */
    Page<LoginInfoVO> getLoginInfoVOPage(Page<LoginInfo> questionPage, HttpServletRequest request);
}
